# This sample code uses the Appium python client
# pip install Appium-Python-Client
# Then you can paste this into a file and simply run with Python

from appium import webdriver

caps = {}
caps["platformVersion"] = "7.1.1"
caps["appActivity"] = "cn.com.fwd.eapp.uat.activity.SplashActivity"
caps["appPackage"] = "cn.com.fwd.eapp.uat"
caps["deviceName"] = "HGAFQ94U"
caps["platformName"] = "Android"
caps["noReset"] = False

driver = webdriver.Remote("http://127.0.0.1:4723/wd/hub", caps)

el1 = driver.find_element_by_accessibility_id("在线投保")
el1.click()

driver.quit()